package au.com.spaceandtime.math;

/**
 * Created with IntelliJ IDEA.
 * User: whale
 * Date: 26/10/13
 * Time: 5:56 PM
 */

public enum Sign {

    Positive("+"),



    Negative("-");





    private final String sign;



    /**
     * enum constructor.
     * @param sign
     */
    Sign(final String sign) {
        this.sign = sign;
    }


    /**
     * getter.
     * @return String sign.
    */
    public String getSign() {
        return sign;
    }

    public boolean isPositive() {
        return this.equals(Sign.Positive);
    }

    public boolean isNegative() {
        return this.equals(Sign.Negative);
    }

}
